487791591b07b5e258d0f822224624d2ff3f3f3e,platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdateChecker.java,UpdateChecker,checkForUpdates,#,172
Before Change
}
final String availBuild = document.getRootElement().getChild(ELEMENT_BUILD).getTextTrim();
final String availVersion = document.getRootElement().getChild(ELEMENT_VERSION).getTextTrim();
String ourBuild = ApplicationInfo.getInstance().getBuildNumber().trim();
if (BUILD_NUMBER_STUB.equals(ourBuild)) ourBuild = Integer.toString(Integer.MAX_VALUE);
After Change
throw new ConnectionException(t);
}
Element root = document.getRootElement();
final String availBuild = root.getChild(ELEMENT_BUILD).getTextTrim();
final String availVersion = root.getChild(ELEMENT_VERSION).getTextTrim();
String ourBuild = ApplicationInfo.getInstance().getBuildNumber().trim();
if (BUILD_NUMBER_STUB.equals(ourBuild)) ourBuild = Integer.toString(Integer.MAX_VALUE);
if (LOG.isDebugEnabled()) {
LOG.debug("build available:'" + availBuild + "' ourBuild='" + ourBuild + "' ");
}
Element patchElements = root.getChild("patches");
List<PatchInfo> patches = new ArrayList<PatchInfo>();
if (patchElements != null) {
for (Element each : (List<Element>)patchElements.getChildren()) {
String fromBuild = each.getAttributeValue("from").trim();
String toBuild = each.getAttributeValue("to").trim();